Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localize strings for jupyterlab-lsp #557

Merged
merged 11 commits into from
Apr 5, 2021

Conversation

JessicaBarh
Copy link
Contributor

References

Code changes

any text displayed on the UI is made localizable using the TranslationBundle and ITranslator from @jupyterlab/translation

User-facing changes

User will be able to use jupyterlab-lsp extension in prefered language given that the language pack is installed.

Can also be viewed by using the language settings to enable string prefix for all localized strings:
image

Backwards-incompatible changes

Chores

  • linted
  • tested
  • documented
  • changelog entry

@JessicaBarh JessicaBarh marked this pull request as draft March 18, 2021 03:50
Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic work, thank you for starting this effort!

I saw the test are failing for rename, and had a look into how this could be potentially improved - please see my suggestion in the comment.

Please let us know if we can help in any way. Do not worry about tests failing on pip check - this is a known issue that I am going to address soon.

packages/jupyterlab-lsp/src/features/rename.ts Outdated Show resolved Hide resolved
@JessicaBarh
Copy link
Contributor Author

Thanks @krassowski! I added your suggestion and looks to be working. Do you have any ideas for the diagnostics.spec.ts test errors?

@krassowski
Copy link
Member

I gave it a go on binder and it is looking good. The only place where I found an opportunity for improvement was in the Severity column of diagnostics panel:

Screenshot from 2021-03-23 21-24-07

which is implemented here:

https://github.com/krassowski/jupyterlab-lsp/blob/f324c69db3685dbf3fac92d097cda2c8f0b57388/packages/jupyterlab-lsp/src/features/diagnostics/listing.tsx#L171

@JessicaBarh
Copy link
Contributor Author

I gave it a go on binder and it is looking good. The only place where I found an opportunity for improvement was in the Severity column of diagnostics panel:

Screenshot from 2021-03-23 21-24-07

which is implemented here:

https://github.com/krassowski/jupyterlab-lsp/blob/f324c69db3685dbf3fac92d097cda2c8f0b57388/packages/jupyterlab-lsp/src/features/diagnostics/listing.tsx#L171

Perfect, thanks for finding that @krassowski. I've just added that as well as the 'panel columns' menu that was also missing.

@JessicaBarh JessicaBarh marked this pull request as ready for review March 24, 2021 17:54
@bollwyvl
Copy link
Collaborator

bollwyvl commented Mar 26, 2021 via email

@krassowski
Copy link
Member

Thank you @JessicaBarh!

@krassowski krassowski merged commit 8baba79 into jupyter-lsp:master Apr 5, 2021
@JessicaBarh
Copy link
Contributor Author

Sorry @krassowski haven't been able to get back on that the past week, thanks for finishing that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants